package org.ushio.nchu_22201408.service.Impl;

import org.ushio.common_module.entity.RepairmanRating;
import org.ushio.nchu_22201408.mapper.RepairmanRatingMapper;
import org.ushio.nchu_22201408.service.RepairmanRatingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RepairmanRatingServiceImpl implements RepairmanRatingService {

    private final RepairmanRatingMapper repairmanRatingMapper;

    @Autowired
    public RepairmanRatingServiceImpl(RepairmanRatingMapper repairmanRatingMapper) {
        this.repairmanRatingMapper = repairmanRatingMapper;
    }

    @Override
    public void createRating(RepairmanRating rating) {
        repairmanRatingMapper.insertRepairmanRating(rating);
    }
}
